<?php
include("includes/connect.php"); 
session_start();
if(isset($_REQUEST['user']) && isset($_REQUEST['c'])) 
{
	
	$sql=mysql_query("update users set record_status='Y' where email_id='".$_REQUEST['user']."'");
	if($sql) {
		header('Location:loginpro.php?confirmed=Y&email='.$_REQUEST['user']);
	}
	else {
		header('Location:error.php');
	}
}
else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Hoonur.com allows you to connect with the right professionals in the entertainment industry</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div id="wrapper">
<?php 
$title="Registration done";
include("header.php"); 
?>
<div id="title">
Confirm your email address
</div>
<div id="forgetpass">
A confirm email has been sent to <strong><?php echo $_SESSION['email_id']; ?></strong><br />
Click on the confirmation button in the email to activate your account<br /><br />
		<div class="button">
                    	<ul>
                        <li class="leftBtn"></li>
                    	<li class="btnClass">
                        	<button type="submit" onclick="location.href='myhome.php'">Click here to proceed</button>
                        </li>
                        <li class="rightBtn"></li>
                        </ul>
                    </div>
</div>
<div id="add">
	<img src="images/addsense.jpg" />
</div>
    
<?php include("footer.php"); ?>
</div>
</body>
</html>
<?php
}
?>